﻿<%@ Page Language="C#" Inherits="E.Web.Teacher.sys.qna.List" %>
<%@ Import Namespace="E.Model" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
  <title>问题解答跟踪</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
  <link rel="stylesheet" href="/css/main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/t_main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/sys.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/flora.datepick.css" type="text/css" media="all" />
  <script type="text/javascript" src="/js/Common.js"></script>
  <script type="text/javascript" src="/js/sys.js"></script>
  <script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script>
  <script type="text/javascript" src="/js/jquery.datepick.min.js"></script>
  <script type="text/javascript" src="/js/jquery.datepick-zh-CN.js"></script>
  <script type="text/javascript" src="/js/CheckBox.js"></script>
  <script type="text/javascript">
    SetCheckBoxProperty("SltAllbtn", "p_chkb");
    $(document).ready(
      function() {
        $("#FromDateTxt").datepick({ dateFormat: 'yy-mm-dd', showOn: 'button', buttonImage: '/images/icon/calendar-green.gif', buttonImageOnly: true });
        $("#ToDateTxt").datepick({ dateFormat: 'yy-mm-dd', showOn: 'button', buttonImage: '/images/icon/calendar-green.gif', buttonImageOnly: true });
      }
    );
  </script>
</head>
<body>
  <form id="form1" action="?act=s" method="post">
    <div class="m_top"></div>
    <div class="block" style="height:100px;">
      <div style="width:650px; height:22px;">
        <div class="title">&nbsp;问题解答跟踪</div>
      </div>
      <div class="spe_line_2"></div>
      <div style="width:650px; height:23px; margin-top:6px;">
        <div class="fl" style="line-height:23px;">学员姓名：</div>
        <div class="fl"><input type="text" id="UserNameTxt" name="UserNameTxt" value="<%=userName %>" maxlength="100" /></div>
        <div class="fl" style="line-height:23px;">&nbsp;教师姓名：</div>
        <div class="fl"><input type="text" id="TeacherNameTxt" name="TeacherNameTxt" value="<%=teachername %>" maxlength="100" /></div>
        <div class="fl" style="line-height:23px;">&nbsp;地区：</div>
        <div class="fl">
          <% if (areaList != null && areaList.Count > 0) { %>
          <select id="AreaSlt" name="AreaSlt">
            <option value="-1">请选择</option>
            <% foreach (DictAreaModel areaModel in areaList) { %>
            <option value="<%=areaModel.ID %>"><%=areaModel.Name%></option>
            <% } %>
          </select>
          <% } %>
        </div>
      </div>
      <div style="width:650px; height:23px; margin-top:6px;">
        <div class="fl" style="line-height:23px;">开始时间：</div>
        <div class="fl"><input id="FromDateTxt" name="FromDateTxt" value="<%=fromDate %>" />&nbsp;至&nbsp;<input id="ToDateTxt" name="ToDateTxt" value="<%=toDate %>" /></div>
        <div class="fl" style="line-height:23px;">&nbsp;是否已回复：</div>
        <div class="fl">
          <select id="IsReplySlt" name="IsReplySlt">
            <option value="-1">全部</option>
            <option value="1">是</option>
            <option value="0">否</option>
          </select>
        </div>
        <div class="fl"><input type="image" src="/images/btn/search.gif" style="width:54px; height:23px; margin-left:20px;" /></div>
      </div>
    </div>
    
    <div class="block_2">
      <div style="width:650px; height:22px;">
        <div class="title">&nbsp;答疑信息</div>
      </div>
      <div class="spe_line_2"></div>
      
      <% if (qandaList != null && qandaList.Count > 0) { %>
    
      <div id="datatable">
        <div class="data_rows" style="font-weight:bolder;">
          <div class="d_r_q_c"><input type="checkbox" id="SltAllbtn" onclick="SelectAllCheckBox();" class="chkb" /></div>
          <div class="d_r_q_n">学员姓名</div>
          <div class="d_r_q_t">教师姓名</div>
          <div class="d_r_q_d">提交时间</div>
          <div class="d_r_q_r">回复信息</div>
          <div class="d_r_q_o">操作</div>
        </div>
        
         <% foreach (ShortQandAModel model in qandaList) { %>
        <div class="data_rows">
          <div class="d_r_q_c"><input type="checkbox" id="chkb_<%=model.ID %>" name="p_chkb" value="<%=model.ID %>" class="chkb" onclick="SelectThis();" /></div>
          <div class="d_r_q_n"><%=model.UserName %></div>
          <div class="d_r_q_t"><%=model.TeacherName %></div>
          <div class="d_r_q_d"><%=model.AddDate %></div>
          <div class="d_r_q_r"><%=model.IsReply ? "已回复" : "未回复" %></div>
          <div class="d_r_q_o"><a href="/sys/qna/View.aspx?id=<%=model.ID %>">查看</a></div>
        </div>
      
         <% } %>
        
      </div>
      
      <div class="fr" style="margin:8px 0 0 0;"><%=mypager%></div>
      <div style="margin:8px 0 0 0;">
        <input type="hidden" id="arrv" name="arrv" />
        <img alt="" src="/images/btn/del_s.gif" class="cursor" onclick="DeleteSysSelection('qna');" />
      </div>
      
      <%} %>
      <% if (act == "s"){ %>
       <script type="text/javascript">
       document.getElementById("IsReplySlt").value = <%=isReply %>;
       document.getElementById("AreaSlt").value = <%=areaid %>;
       </script>
      <% } %>
    </div>
  </form>
</body>
</html>
